Learn R Programming

Rknots (version 1.3.0)

setCoordinates<--methods: Setters for the 'points3D' and 'ends' slots of a Knot object.

Description

The points3D slot holds the $N$ x 3 matrix containing the $x$, $y$, $z$ coordinates of the points. The ends slot is a vector of integers containing the separators of the link components.

Arguments

See Also

Knot-class

Examples

Run this code
link <- makeExampleKnot(k = FALSE)
link <- newKnot(link$points3D, link$ends)

setCoordinates(link) <- matrix(runif(90), ncol = 3)
setEnds(link) <- c(10, 20)

Run the code above in your browser using DataLab